package com.yiligi.myserver.service;

import com.yiligi.myserver.pojo.Files;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FileService {

    List<Files> selectAllFile();

    int selectFileCount(String name, String type);

    List<Files> selectFilePage(int pageNum, int pageSize, String name, String type);

    int uploadFile(Files files);

    int deleteFile(int id);

    Boolean delBatchFile(List<Integer> files);

    List<Files> getFileMd5(String md5);

    String getUrl(String avatar_url);
}
